Fixed move() so that inserting into the middle works for most of the time