fixed losing modified bugs.