Fix for direction 0 not being retrieved correctly