fix error on entity