Fix corner case where 0 was being truncated