fix error "unsupported operand type(s) for -: 'int' and 'unicode'"