Add a fix for an issue where LCSSA would fail to insert undef's in some corner