resolves a crash in debug mode