Fixed regression in direction API.