Fixes infinite loop in font loading.