fix #8 problem with the creation of main types