fix the bug that causing the farm_counter lower than 0.