fix a bug on view due to old code
Merge pull request #5 from Victoire/fix/viewBug

fix a bug on view due to old code