fixed a bug in updating smile file