fix logic in updated enable and disabled sets