fixed problem with data update in background