fix fonts and replace ValidEntity with IsValid