Fix a bug in get_where()