Fixing animation constructor