fixed two bugs of heaplayers