Alexa routines not working

The devices do not follow the rules of the routine set with Alexa, which involves turning on with a certain color. Often for a moment it switches to the set color and then reverts to the previous one.

Can you solve the problem?