mining bug fixed