Fixed off-by-one error when initializing Online game