fixed the failure during tab transiton