Fixed a bug with the cross-fade animation