Function's Category switches to "New Enumerator 0" automatically

I’m suffering from the same problem.