fix scale ranges