'cleared' is a list not a dictionary.
Merge pull request #2 from ppettit/t/cleared_bugfix

'cleared' is a list not a dictionary.