fixed some scaling issues