fixed where clause