Fixed minor data direction bug.