Fix when to is not array.