fixed recursion bug in inflate command