fix compile error for release