fixed bug on removing the variable but not refreshing logged in as