Fixes entity loading errors.