Fix auto open browser bug