Fixed an issue where reloading of removed dependencies would cause an unexpected circular dependency error