fix append first tab not working issue. fix #4