fix bug with isExtension