fixed where error