fixed bugs in screen controls