I don't really know what I'm doing but I hope this fixes the crashing.