DrugScript: fixed some bugs in VM