fix for not setting values if page is not fresh