Fixed broken touch-screen code.