Move function fixed