Fix crash in Next cop

This fixes #1191.