fixing compiling errors from config