Indention in this section looks a bit off, maybe you're mixing tabs and spaces?