Fixed where clause

Fixed where clause