Avoid class load twice in the same classloader

Closes #433