fix extension to lower case