fixed scopes in findWhere/getWhere