Fixed incorrect scaling