fix multi-screen function