Fixed a bug that caused a crash at startup due to loading dynamic assembly.