Problem with locating and patching address at a dynamically allocated memory - MPGH