Fixed the SetClipboardData bug. Code cleanup.