clock: fix errors