Configuration mixing effects in direct reactions