fixed compilation error, added check for max GS iters