Fixed memory problem resulting from incorrect parsing of int value.