Fix a bug for URL on client side

Fix #4