clock gating fix for main memory