Fix for debug build