Should this be size() - 1?