Fixed connect to server cancel button problem