fix bug in generating feature string