fix issue where text buffer is blank if value is 0 or false