Fix long view creation bug; and remove invalid files automatically.
Merge remote-tracking branch 'origin/v0.2' into zhuqihan