Fixed previously introduced bug which allowed all ids to be valid for inlining.