fixed termination error: functionals.dart