fix bug on tab widget