Fix duplicate resource in plugin define