Fix bug in making noise maps in memmap mode