fix silly off by one error