real fix to array overflow on coastal scene
save settings always on exit
small bug fixed