fixed pointer logic in changejoy cmd