remove the bad query call