fix ambiguity in scale!. fixes #3006