Judge criticises State's sloppy evidence handling