fix for sketchy ajax online refresh