fix compile error on release build