I don't know how this happened so I'll explain how I found out about it.
I never used any of my medicine during dungeon 1-3, I accumulated 37 medicine and they took up 2 of my inventory space so I decided hey might as well use them up instead of using heal after battles. I spammed all my medicines on my characters and it still says "owned 37" and still took up 2 spaces. I went back to town bought 1 medicine and now it says "owned 38". Went back to dungeon purposely injured my self, spammed medicine, still says I have 38.