invalid entities fix