Judge was wrong to let mother take daughter abroad