fix compile warning
fix release build