Fix undefined range in the server