diff --git a/src/main/java/net/floodlightcontroller/util/ActionUtils.java b/src/main/java/net/floodlightcontroller/util/ActionUtils.java
index 1f8c8269f19ac092adf2d8dfb526eafff7564031..0620c718f68559c064ebad11d3f635ae5babac19 100644
--- a/src/main/java/net/floodlightcontroller/util/ActionUtils.java
+++ b/src/main/java/net/floodlightcontroller/util/ActionUtils.java
@@ -1179,7 +1179,7 @@ public class ActionUtils {
 		if (n.matches()) {
 			if (n.group(1) != null) {
 				try {
-					TransportPort portnum = TransportPort.of(get_short(n.group(1)));
+					TransportPort portnum = TransportPort.of(get_int(n.group(1)));
 					OFActionSetTpSrc.Builder ab = OFFactories.getFactory(version).actions().buildSetTpSrc();
 					ab.setTpPort(portnum);
 					log.debug("action {}", ab.build());
@@ -1213,7 +1213,7 @@ public class ActionUtils {
 		if (n.matches()) {
 			if (n.group(1) != null) {
 				try {
-					TransportPort portnum = TransportPort.of(get_short(n.group(1)));
+					TransportPort portnum = TransportPort.of(get_int(n.group(1)));
 					OFActionSetTpDst.Builder ab = OFFactories.getFactory(version).actions().buildSetTpDst();
 					ab.setTpPort(portnum);
 					log.debug("action {}", ab.build());