fix long/int format errors