Small bug fixes, pertaining to ROC ID/idx conversion

I believe this should deal with issue #177