Dart: fixed folding exception