Fixed enum script

Enums were appearing twice on the script.