Weird color flash

Strange issue, I have an automation to turn my outside lights on via motion to purple from sunset to 11pm and white from 11pm to sunrise. If the last state of the lights is purple and the motion is triggered after 11 the lights flash purple then go to white. Is there a fix for this?