fix cli won't get the right version