Fixed map validation,and start/end bug on new map after saving.