error accessing dictionary elements

Signed-off-by: zachwick <zach@zachwick.com>