fixed bucket allocation bug.