made it not crash on dbg builds