fix config stack corruption