fix compile warning which will be treated as errors