fixed bug on port