fixed where where error