fix hardcoded state field name