Fix for handin queryserv and fix for SetAccountFlag