server: fix really off by one