Fix bug where round could end up out of range (could happen 1/(n*2) times)