fix bug in old version code too
fix bug in old version code too

Signed-off-by: lovesh harchandani <6bf7215c1b95516e7475a6bb01d5c0638c3b3fd8@gmail.com>

miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl,miracl/amcl