Fix reading a function data from file for local dof index change.