fixed plugin detection