fixed issue with extention not being correct