Fixed before_filter issue