There is a very peculiar bug that allows NPC sprites to stay even outside of shops. Pressing Z (the button that hides UI) during transition from exiting the shop, if timed correctly (just after the last line of NPC message and before you get returned to Glitch City), will make NPC sprite stay on the screen. NPC sprite then can be easily removed from the screen by re-entering a shop and quitting normally.