Fix close not modified issues.