Fix minor inv.contains error