Fix behaviour change in query engine on the type of edit queries.