Merge pull request #76 from sjinks/issue-1379

Fix #1379
Fix #1379
Merge pull request #77 from dreamsxin/view

Fix #1379