Fix active state for retainers and contracts