Fixed multiple viewport open/close and multiple sprites in different viewports