Fix for before_filters