hql query fix