bug fix for extensions in non-lowercase