Fixed incorrect function return value in clock.