fixed bug in segmap.py so that if a new segmap cannot be created seg2 defaults to the original segmap