fixed test spGr_stagebefore