fix for offset issue.