minor initial error fixes