Fixing URL bug