Fixed bug in coreset script.