#11 fix crash on UNIX-like OS when create a second tab (by hobbyscripter@sf)