Fix sidebar animate bug