Use the correct variable for filename.