fixing setting offset