fix port error, close #3