Fix in before_where