Make sure that the entity is deserialized to the correct state so that saving doesnt break.