Fixed input / output but in init_memory.