Fixes off by one