solve some compilation warning