Fix website check loop not breaking out