Return directly last element of Cpath array instead of calculate it