Change the RegisterClass code.
Prevents an issue when creating multiple contexts.