small bug in mmap