fix issue with editing todo being always the last