Fix hostUrl variable