fix empty command error