fix some compilation error