fix a bug: set offset origin value