Fixed undeclared type variable