clock gating logic fix