Fixed segfault by mapping on page boundries