Fixed repeating change event on the first and last element