fix crash when reading clocks