Minior named query bug fixed