Fixed minor bug in the Modify/Unmodify operations.