TSAGE: Fix CID 1002381 to 1002384, get rid of a couple of magic values