first-fit has bug