Fix bad way for waiting difficulty from server