fixed issue with double execution of onchange event on input