Custom taxonomy query bug fixed