Fix for errors handling as array