Fix scaling error