fixing mmap() call