fixed multiple entity initialization