Prevent from crashes.