fix long/int garbage