Fixed num_left bug