Fix scale being set to zero error