fixed the bucket bug in competition mode