Fixing the view generation.