fixed error when save without any modification