Fixed none warnings from the touch and tick functions