fix state sending