fixed checking on disabled plugins