named query fix