fix min scaling