fix condition to show closed date