Fixed player's inventory closing