fix issue on saving up and length