Take a piece of very thick Rubber/Plastic Tubing
Cut about 1 inch length
Cut a slit down the length to mount somewhere on your Rack.
Clamp it to the Tubing/Rack tight (with the Light's Clamp) ...it won't move!
Depending on the rack you have... What rack do you have?