fix ssave out of range error