offset vaulue bug fix