Merge pull request #1103 from IT-Can/error-array-565

updated version of pull request #565