fix db receiver bug with null state at initializing phase