fix model.room middleware pre-save