quick bugfix in str2port