Some fixes

Fixes some issues and PHP notice.
Change invalid download URL.