Hopefully fixed bug that caused clock to lag behind