A fixed point theorem for analytic functions