diff --git a/applications/rdma_demo/libraries/rdma_packetiser/src/vhdl/rdma_packetiser_assemble_header.vhd b/applications/rdma_demo/libraries/rdma_packetiser/src/vhdl/rdma_packetiser_assemble_header.vhd
index 174ff8d1db16f1bf22543c970650bb26f7b38552..a71c4922a3629945ec991744097b1c3c73546024 100644
--- a/applications/rdma_demo/libraries/rdma_packetiser/src/vhdl/rdma_packetiser_assemble_header.vhd
+++ b/applications/rdma_demo/libraries/rdma_packetiser/src/vhdl/rdma_packetiser_assemble_header.vhd
@@ -201,21 +201,19 @@ begin
               v.opcode := c_rdma_packetiser_opcode_uc_write_only_imm;
               v.udp_total_length := c_udp_app_wo_hdr_len + to_uint(block_len);
               v.ip_total_length  := c_ip_udp_app_wo_hdr_len + to_uint(block_len);
-            v.sel_ctrl := 3;
+              v.sel_ctrl := 3;
             end if;
           elsif v.nof_packets_in_msg = 2 then -- set opcode to write_first.
             v.state := s_last; -- next state is last as there are only 2 packets.
             v.opcode := c_rdma_packetiser_opcode_uc_write_first;
             v.udp_total_length := c_udp_app_first_hdr_len + to_uint(block_len);
             v.ip_total_length  := c_ip_udp_app_first_hdr_len + to_uint(block_len);
-
             v.sel_ctrl := 0;
           elsif v.nof_packets_in_msg > 2 then
             v.state := s_middle;
             v.opcode := c_rdma_packetiser_opcode_uc_write_first;
             v.udp_total_length := c_udp_app_first_hdr_len + to_uint(block_len);
             v.ip_total_length  := c_ip_udp_app_first_hdr_len + to_uint(block_len);
-
             v.sel_ctrl := 0;
           end if;