Deal with null direction_id