This is strange. I think I fixed this a few versions ago. As I have not tried, but my inventory never broke, but it could be due to a random error in the HTML version of the game. I haven't really figured out how to fix them completely yet.