Fixed errors for compiling