Bug fix

See the new test for the `insertHTML` command.