fixing polling connection exception