fixed a error in the saving system