fixed repeat request if error or sleep mode