Fixed compiling errors.