Fixed reader filename not being passed correctly