Updating the entity so that a correct error gets thrown