Fixes special spawn for generator-based elements
Fixes spawning custom element crash
Merge pull request #27 from IDKJava/custom-elements-fixes

Custom elements fixes