Fixed a bug that would throw an exception and cause tracks to be off.