minor error fixes