Weird results with Hime Map Regions

I'm using a slightly edited (I removed the parts regarding music) of Hime's Map Regions http://himeworks.com/2014/02/map-regions/ script, but it seems to do something I don't want it to. When I move into a building with no region IDs from the outside map that includes region IDs, the map name that appears doesn't change. For instance, if I move from a region known as "Commercial Lane" into a building, that building's map name is still displayed as "Commercial Lane", instead of it's own separate name of "Nu-Life Cyberware". If I get rid of the script, the map names show up how they normally should.
I was able to get this 90% working. Need some help to complete it.
All working now. Just needed to add one line. @Ninjakillzu
Spoiler: Hime Map Regions Patch
Code:
=begin
#===============================================================================
Title: Map Regions
Author: Hime
Date: Apr 24, 2015
URL: http://himeworks.com/2014/02/17/map-regions/
Patch: Roninator2
--------------------------------------------------------------------------------
** Change log
Oct 2, 2019
   - Initial Creation
--------------------------------------------------------------------------------  
** Terms of Use
* Follow Hime's Terms of Use
--------------------------------------------------------------------------------
** Description

This script fixes a bug in "map regions".

--------------------------------------------------------------------------------
** Installation

In the script editor, install this script below Hime Map Regions

--------------------------------------------------------------------------------
=end

module RPG
  class Map
    alias r2_map_region_92b7f9  map_regions
    def map_regions
      @oldmap_name = $game_map.display_name if @oldmap_name.nil?
      r2_map_region_92b7f9
    end
  end
end

class Game_Map
  def blank_region_location
    @map.display_name = @oldmap_name
    @map_regions = nil
    @region_name = nil
    @oldmap_name = nil
  end
end

class Scene_Map < Scene_Base
  alias r2_perform_transit    pre_transfer
  def pre_transfer
    $game_map.blank_region_location
    r2_perform_transit
  end
end
The part that is missing is it saves the last region id even when you transfer maps. It only updates when you touch a different region.
I tried emptying all of the values and it still persists.
I was not able to get the region id or whatever value it is using to be nil in order for it to update when you walk on the same region that you did the last time.

Walk on region 2 -> map name shows up
transfer map -> I got it to change the map name back to the original (it changed the map name permanently)
transfer back to previous map
walk on region 2 -> no effect
walk on region 3 -> map name shows up
I was able to get this 90% working. Need some help to complete it.
Spoiler: Hime Map Regions Patch
Code:
=begin
#===============================================================================
 Title: Map Regions
 Author: Hime
 Date: Apr 24, 2015
 URL: http://himeworks.com/2014/02/17/map-regions/
 Patch: Roninator2
--------------------------------------------------------------------------------
 ** Change log
 Oct 2, 2019
   - Initial Creation
--------------------------------------------------------------------------------  
 ** Terms of Use
 * Follow Hime's Terms of Use
--------------------------------------------------------------------------------
 ** Description
 
 This script fixes a bug in "map regions".
 
--------------------------------------------------------------------------------
 ** Installation
 
 In the script editor, install this script below Hime Map Regions
 
--------------------------------------------------------------------------------
=end

module RPG
  class Map
    alias r2_map_region_92b7f9  map_regions
    def map_regions
      @oldmap_name = $game_map.display_name if @oldmap_name.nil?
      r2_map_region_92b7f9
    end
  end
end

class Game_Map
  def blank_region_location
    @map.display_name = @oldmap_name
    @region_name = nil
    @oldmap_name = nil
  end
end

class Scene_Map < Scene_Base
  alias r2_perform_transit    pre_transfer
  def pre_transfer
    $game_map.blank_region_location
    r2_perform_transit
  end
end
The part that is missing is it saves the last region id even when you transfer maps. It only updates when you touch a different region.
I tried emptying all of the values and it still persists.
I was not able to get the region id or whatever value it is using to be nil in order for it to update when you walk on the same region that you did the last time.

___________
Walk on region 2 -> map name shows up
transfer map -> I got it to change the map name back to the original (it changed the map name permanently)
transfer back to previous map
walk on region 2 -> no effect
walk on region 3 -> map name shows up
Unfortunately, I can't help as I don't know how to script. I REALLY appreciate the effort though, as this problem is one of the main issues keeping me from releasing a demo of my main project. 😀
I've run across a weird crash, which I'm not sure what's causing it. If I use the transfer function to move the player to a different part of a map, it gives me a "no method error" crash.

nomethoderror map name.png
It's showing the script Window_MapName is the issue. Since it a totally new issue and not related to the thread topic (plus necro posting) You need to make a new thread. @Ninjakillzu
It's showing the script Window_MapName is the issue. Since it a totally new issue and not related to the thread topic (plus necro posting) You need to make a new thread. @Ninjakillzu
Ok, I'll do that.

Original thread: https://forums.rpgmakerweb.com/threads/weird-results-with-hime-map-regions.113816/