Fixed sendMessage for copied