fix small bug in rebuild.