A local judge called the oversights 'baffling and shocking.'