fix token setting