bug fixes in the tab1