Improvement of the wire gain near the frame of a time projection chamber