correct various issues with the slack formula
Merge pull request #2116 from taylorlapeyre/master

Correct various issues with the slack formula