Fixed Some Compile Errors