Fixed buggy default expiration logic.