fixed problems with rrule and unpatched when