Fix RAM loop.