Fixed the map when TabSheet was used