Memory Read/Write fix