Fixed loop for stuck