Fix some error issues.