Fixed before_update, before_insert and before_delete listeners