fix infinite loops