fixed bug by adding slash to urls.