Fix some issues with scale down animation in sidebar