Fix send data hook