fix the offset of destination by 1 in the previous version