fix another long vs int mismatch