Bug fixes

I'm bad at coding. Removed tabs from edits.