Fixed getStandardQueryPacket method