fixed serious type mapping bug