its probably memory, leds are really sensitive about current flow. even if you touch it with a finger it will react.
what i did is a relais between the + DC pole to eliminate memory (thus stored current) on the leds. When I switch the relais 2 seconds everything goes black and stay black.
setup APA102 controller with HD107S leds.
also sometimes it will help to "drain " the first led with a 100ohm resistor/ will also help to protect the first led flowing to much current. And flatten out signals.. but anyway.... just place the resistor directly onto the GPIO10 in between the dataline DATA and strip. CLK isnt necessary because its only for timing purposes