fixing query import