Bug in paste operations fixed