menu link fixed

index out of range error when clicking on the inventory tab.