fixed joining the same class twice