repair some compiling errors.