Minor bugfix - updating input element value