fix in entity loader.