Fixed method of screenCapture.