Fix undefined scale.