Fix clock initialization code