Add limits to scales values.
Remove useless variable.