Fix bucket rule bug.