A fix of #291

Since committer doesn't seem to want to fix it.
I used tabs, tell me if you want spaces or any other formatting changes.
Will be closed if @monster860 updates or you disagree with my formatting fixes.