Fixed the problems with synchronising the sideBar and the currentTag when showing a cell causing an error