fix defect 145 from github