fix type not captured