fixed the saving