fixing little heap queue growing bug