fixed some scaling problems