Fixed paste issue in OS X.