fix clock updating