fixed double printing query of conflicting classes