make the trailing on algorithm update the env properly
#1721
+42
−52
Loading