fixed a small bug in pads input per row