Workaround for tab titles resetting.