Update controller.py

fix invalid line data errors