Fixed bug where nested statements wouldn't be parsed properly