Fixed a bug regarding template code type extraction