fix type in ext