Fixed potential bug in smart signature parser.
Removed useless str2int function.