fixed query in previous commit