fixed screenSize setting bug from previous change