correct typing errors