fix important bugs of shiftmap scaling