fixes improper chaining of user queries