fixed entity code in explicit space