fixed hasmany serialize_ids