fixed cmdtick.c

Some weird stuff got into cmdtick.c