Trying to fix random crashes.