Corrected capitalization of localInv