Ugly bug fix - tabs and map recreation

when was map recreated, there was problem with duplicate ids, solved,
thanks stackoverflow