Fix tabs race [fix #4]