Fix can not delete klass if linked before_filter