Fix QueriesMixin