Minor bug fix related to UI animation.