Fixed issue with chained errors