Fix bug on gtk screen capture.