fixed minor bug in addIdent rule