Fixing memory region assert for mpi apps