fixes a crash