correct JX_DIRECTION