fix compile error in release mode