fix for scale != 1