Fix bug in SRAM functionality.