Fixed bug with long poll being constantly created