fixed gp bug