fix zoomout bug with alignment, now it always recalculate the alingment everytime