fixing bug where HQLParams need to be cleared when creating HQL