fixed query limiting