Fixes the pasteboard class