Fix player's inventory closing. Thx to OniBait