Fixed file extension bug