bugfixes

fixed some typos to make it compilable