fixed bug save