Fixed some error reports