I think this fixes a crash.