minor error fixes.