fixed errors in gmp module