fix and end animation