fixed bug with uppercase extensiopn