view switch data load bug fix