Fixed bug where assemblies were not being loaded correctly