fix method createType