Resolve 'bug of space' for the tabs