Fixed changed_when logic.