Fixed animation to deal with heading.