This and a similar access in line 48 is prone to fail. You should _always_ check your input from unknown sources.