Fixed typing errors