You inversed chunked and badlength here. Also "in which case" should be a separate sentence targeting both errors, not just this one.