Error when reversing the list

Save values specifically - #9 by CJcorp Please does anyone know why this error happens? I did this too and the same thing happens but it is saved correctly in the database