Fix crash in tas input.
Merge pull request #1236 from RachelBryk/fix

Fix crash in tas input.