correction of errors when moving