fixed problem with refresh flow inside client startup