atempt to fix longpoll undefined ref error