Why the screen function is always wrong?