Fixed a bug causing set_shot being sent multiple times.