diff --git a/examples/lib/defaultHtmlSequencerUi.js b/examples/lib/defaultHtmlSequencerUi.js
index 7283c95cb8..3e4d6034b6 100644
--- a/examples/lib/defaultHtmlSequencerUi.js
+++ b/examples/lib/defaultHtmlSequencerUi.js
@@ -17,7 +17,6 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
// look up needed steps from Url Hash:
function importStepsFromUrlHash() {
var hash = urlHash.getUrlHashParameter('steps');
-
if (hash) {
_sequencer.importString(hash);
_sequencer.run({ index: 0 });
@@ -27,9 +26,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
function selectNewStepUi() {
var m = $(addStepSel + ' select').val();
- //if so that whenever the module dropdown is empty it will not show error it will take first value.
- if(!m) m = arguments[0];
- else $(addStepSel + ' .info').html(_sequencer.modulesInfo(m).description);
+ if(m) $(addStepSel + ' .info').html(_sequencer.modulesInfo(m).description);
$(addStepSel + ' #add-step-btn').prop('disabled', false);
}