Fix views config generation
Merge pull request #617 from Cacteye/development

Fix views config generation.
Man, I sure hope this works... :)