Fix for an off by one error.