Correct handling of permission renewal of dates in the past