should not throw TypeLoadException

fixes #1936