fix type converter