fix crash when using track debug. unfortunately, visual aids are not yet functional