random crash fixed