Use first matched id in mo script

Addresses #113