Fix extern type