Fixed 'G' command parsing