fix for no query on login