Correct timing issues in mem_control.