fix side bar and spy bugs