Fix crash in tas input.