fix broken active/inactive