Fixed errors which prevented compiling

I have fixed two fatal errors which prevented successfull compilation.