prevent lockup by fixing clock-handling
Merge pull request #1 from mindoms/patch-1

prevent lockup by fixing clock-handling