attempt to fix a crash