Fixing scaling error