correct the error of locationrestfulservive