fixed before_filter issue