Fixed errors in compiling