Fix bug where dependencies would not be loaded