fixed __resourceQuery bug #11
1.2.6