Fixed a crash when calling setRange on an axis too early