Fixed run-time exception, plus spelling mistake.