Fixed repeated escaping when getting view variables