[BUGFIX] Use correct array structure for EM error messages