Update cathode.lua

fixing nil canvas issue