fix clock controller