Yeah... Glitch. bad warp points in the cave :/. Don't enter the caves until you get the chainsaw (which you can get by heading east of the wooden city) Sorry for the inconvience
.
Hopefully you have a prior save (one of the main reasons I get the poke center to do a save promt is cause of bugs)