Fixed bug in TIS viewer that caused freeze on very low tile count