fixing exception when using wildard for extension search