minor bugfix in transport.py