Fixes entity extraction crash.