Slight bugfixes

Just some minor spelling and code issues.