fixed bug with hide tab bar was in wrong place