Small bug fix in integer to buffer conversion.