fixed duplicate named query