Fix the case of only 1 extension