I'm not sure what was happening, whenever I opened the file in emacs the indentation, braces, etc. seemed to get all wonky. Working with it in vi, and it seems to of resolved itself but must have missed this one.