[fix] create dir issue for custom element