i think the bug here is it will not work in first turn but will always work after 2nd turn, i think it is coded like toxic orb which u need to wait for 2nd turn or use protect to activate it.
experienced that bugged also, lead my pokemon with scarf and still outspeeded and outspeed it in the nxt turn