fix REST url