fix side bar not opening correctly