Fix internal error on class registration.

I broke my own rule I made on class definition lol.