Fixed one line error in serialmanager.py