infinite loop with broken package fixed