fiexed sample heuristic bug