fix regression in debug build