I have found out what the problem and can fix it manually but I've no idea why the extension does it.
I have to move lines 56 -98 (in my Search_Results file) to the top of the page just after the connections line. It then worked fine.
Thanks for your help - a fix would be good!