fix extension enabled checks