fixed a plugin order problem