fixes an issue where only the first error would get reported.