fix adpoll function,fix referrer check