Replace mixed spaces to tabs and make sure everything is indented correcly.