Fixed bug with incorrect length of paramsformat tokens