Maybe this fixes the crash on debreifing?