Fixed mmap() fd issue