fix global types when URI is empty