Fixed plugin checking