Fixed random offset issue.