This somehow fixes crashing while not running in debugger.