Fix invalid url
Fix for #78
Fix for #76
Fix for #74
Fix undefined option which generate PHP notice.