Minor fix for when commands are in the buffer.