Fixed bug (removed extension to fname).