scaling, fix #18