fixed automaterial plugin compatibility