fix QuickMine algorithm bugs