fix side bar animation bug