Important role of projectile excitation in O+Ni