Update action.lua

* Fix course computation bug of dy in kalc()