Fixed issues after upgrade to the qcubed 2.2 version

The feature-jQcubed branch is updated to work with #135 issue