Fixed clipboard boundary issues