Fix crashes with ASI output