Fixed a bug in the Queryable mixin