fixed some issues with the number scaling