Fixes game crashing on press of 'return' key when debug is enabled.