fixed bug of opening a new stack after design time is initialized