fix issue 1825
Merge pull request #333 from ilvalle/create_view

fix issue 1825