Fixed missing return statement in tick functions