Fix to debug build