Fixed window location URL issue