fixbug: default offset need to be zero