fix compiler error in debug mode