There is no 3rd sex... fixes #572
Quote issue and bad id; thanks to Raphael
Missing default prefix on free search for some search; thanks to Raphael
Show/hide query script was not present if there were no results