bugfix when movement over own height/width
update
add duplicate right/left for replace mode