Fix bug in brick's x-tabbar

Revert this commit once the code is fixed!