fix bug of accumulating failed connect attempts
add meta-fresh tag when connecting