fix typo with error handling for invalid trans

fixes issue #25