Fixed stuck loop