fix timeline and ui animation bug