fixed check for gmp