fix some gprs bugs