Fixed typedef bug