file extension bug fix