Update chainsaw.lua

added Phvli's update to fix potential infinite loop