You should check whether the global entity already exists, or set it to not persist.