Fix views config generation

Closes #553