Fixed extension checking