fix shifting error in mremap