Fix runtime error

wrong column name to get port
wrong way to insert item to map