Fix weird data loss problem.