fixing scaling