Effect of leaky modes on the response of short optical fibers