fix undefined for closed status