fixing enabled attributes bug