fixed errors in the ref data manager