Fix an issue when more than one stack is visible at start.