Fix uncomplete path in windows.location