Avoid potential infinite loop