Update api fixing callback genrator.