fixed custom draw scaling problem