Enemies attacking while stunned

Had this randomly happen where a enemy was able to attack after being stunned. From what ive seen they only are able to get one attack through while stunned but it shouldnt be any