Fix bug when testing CLOSED property.