Fix problem when adding a new animation before the last one finishes

Fix #47