Fix #1 Correct saving config for 1 or 0 environments