fixed save with empty relation