fix reset ram server crash bug