active first li element no working in firefox

Orbit slider not working correctly if the first li is marked with class="active" (in Firefox 29.0.1).
Do removeClass("active") and goto("$init_target.index()) only if current != $init_target.index()