Fix moving buffer with changes