bug fixes in osci_card.controller.py