Fixed invalid memory model