Ajax entity creation fix