fix array in erros messages