refresh_globals fix