Fixed a Bug in LoginQuery