fix a bug when adding the first custom block plugin