Fixed the environments and config files