fix: endless loop when conversion does not end