Fixed a bug that only the port can be added.

Signed-off-by: Min Chen <minchnew@gmail.com>