continue before a empty cmd segfaults