Off by 1 error with unitpicker