Thank you for your reply, and I did misunderstand it.
But it seems that the most essential problem is not there, because the front elements are 0s after add_kernel, and after I changed stride, the result was still all 0s.