Fixed bug found in where_clause method