fix bug with empty view vars in config