Fixed the infinite loop. It was cause by a missing $ in notepad++. Add an if to see if ver is empty. Fixed the vlc crash. It was caused by the page no longer working.