fix compiling r05 errors