Fix unprocessable entity error during creation.