Fix error on unmatched prefix.