Fix clock initialization

Fix #9