Fix gson error with Commands.