Fixed move function.