fixed bug with WHERE 1