Fixed the direction path to have the correct gradient orientation.

Change-Id: I132e4531f15efb85b35a1119a1cd235b98d9aa9b