Corrected typing errors