Fixed errors in compilation