fixed resizing issues with map key and inventory