Removed off by one error