small fix in entity loader