Improved error handling in case of read error inside arrays