fixed before_save filter