trying to fix a crash