unused <a> tag removed, illegal character in query fixed