fixed bug related resource namespace in query