fix effects in related samples