bug fixed for saving animations