Fix....

Fix segmentation fault when writing to out of memory map adress.