Fixed bugs of modification.