fixed negative pgcross bug