Fix for 'ismodified=0' bug.