Add missing parentheses in loadInventory

Fixes #40