fix token computation with no params