fixed a bug in query shortcuts