Fix losing modified bugs.