fix the extentions validation