Fix dependent bean type