fixed compiling errors.