fix release build break caused by warning.