Move line to correct place