Fix views generator in v0.12.1

Fixes #283