fix data loss