trucate and normalize bug fix