Fixing getCurrentURL