Fixing relative URL bug