minor optimizations, trying to solve the copy icon issue
fix ZeroClipboard bug