bug fix to length conversion for points trait