Idiom for incomplete investigation

You could say The investigation was carried out in a slipshod manner and thus proved prejudicial to the accused.