fix type erasure compile issue.