fixed sending twice bug?