#23171 Fix contract age condition