Fix compile error in debug mode