Illegal mixing of tabs and spaces

It doesn’t seem like you have spaces and tabs on the same line, but you have tabs in the empty lines between each set of stats, and spaces used to indent each stat. Try removing all tabs or unifying the indentation type using your development environment’s indentation tools or Find-and-Replace tool, perhaps?