added 'fix' so when you die your inv is reset