debug some bug in  tab and select