Fixed an issue on passing the instance name to the server