fix to where clause