fixed some scalling bug.