Fix in HQL query.