fix try length, was off by one