order direction fix