*fixed crash on import and save when no tag selected