fixed bug in Local save