Fixed bug, extra end in config-environment